package com.ruoyi.iot.domain.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 设备健康评分实体
 */
@Data
@Schema(description = "设备健康评分")
public class DeviceHealthScore {

    /** 自增主键 */
    @Schema(description = "自增主键")
    private Long id;

    /** 设备编号 */
    @Schema(description = "设备编号")
    private String deviceId;

    /** 评分窗口结束时间 */
    @Schema(description = "评分窗口结束时间")
    private LocalDateTime scoreTime;

    /** 综合得分 */
    @Schema(description = "综合得分")
    private BigDecimal scoreTotal;

    /** 告警维度得分 */
    @Schema(description = "告警维度得分")
    private BigDecimal scoreAlarm;

    /** 故障维度得分 */
    @Schema(description = "故障维度得分")
    private BigDecimal scoreFault;

    /** 温度维度得分 */
    @Schema(description = "温度维度得分")
    private BigDecimal scoreTemperature;

    /** 电气维度得分 */
    @Schema(description = "电气维度得分")
    private BigDecimal scoreElectrical;

    /** 告警等级汇总JSON */
    @Schema(description = "告警等级汇总JSON")
    private String alarmLevelMix;

    /** 评分指标明细JSON */
    @Schema(description = "评分指标明细JSON")
    private String evaluateDetail;

    /** 创建时间 */
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    /** 更新时间 */
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
